#!/usr/bin/env python
# -*- coding: utf-8 -*-
# datetime: 19/11/2023 上午12:08
# Author: name
# File: user_router.py
# ide: PyCharm
# description:
from fastapi import APIRouter

from backend.app.models.UserModel import User

user_router=APIRouter()



# 创建用户
@user_router.post("/user/create/")
async def create_user(username: str, email: str):
    user = await User.create(username=username, email=email)
    return user
